package sr.codemg.vm;

import lombok.Getter;
import lombok.Setter;

import java.util.List;

public class Selects {
    @Getter
    @Setter
    public static class Request extends Base.Request {
        private String value;
        private Integer cur;
        private Integer size;
        private Integer total;
        private String p1;
        private String filter;
        private String[] selected;
        private String p2;
        private String[] array1;

        public void configPage() {
            int tmp = (cur - 1) * size;
            size = size * cur;
            cur = tmp;
        }
    }

    @Getter
    @Setter
    public static class Response {
        List<Select> data;
    }

    @Getter
    @Setter
    public static class Select {
        private String key;
        private String title;
    }
}
